package src.stx.day251011;


import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
public class SeriakizeDemo {
    public static void main(String[] args) {
        User user = new User("115",80,"123456");
        try{
            FileOutputStream fos = new FileOutputStream("E:\\IDEAproject\\stx_java\\src\\src\\stx\\day251011\\1.txt");
            ObjectOutputStream oos =new ObjectOutputStream(fos);
            oos.writeObject(user);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
